package rolesystem.roles.auction;

import java.io.Serializable;

/**
 * This class represents a payment.
 * Instances of this class are constant, once created they
 * cannot be changed.
 */
public class Money implements Serializable
{
	/**
	 * Amount of payment.
	 */
	private Price amount;
	
	
	/**
	 * Constructor with no arguments, for
	 * serializability.
	 */
	private Money()
	{
	}


	/**
	 * @param amount Amount of payment.
	 */
	public Money(Price amount)
	{
		this.amount=amount;
	}


	/**
	 * Returns the amount of this payment.
	 * @return The amount of this payment.
	 */
	public Price getAmount()
	{
		return amount;
	}
}
